<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="button" value="新增" id="add"><br>
<hr>
<table border="1" cellspacing="0" width="800">
    <tr>
        <th>序号</th>
        <th>消费类型</th>
        <th>收支金额</th>
        <th>收支方式</th>
        <th>收支时间</th>
        <th>收支描述</th>
        <th>操作</th>

    </tr>

<%--    <c:if test="true">--%>
<%--&lt;%&ndash;        ${zhangWus}&ndash;%&gt;--%>
<%--        ${zhangWus[0].zwid}--%>
<%--    </c:if>--%>


    <c:forEach items="${zhangWus}" var="zhangwus" varStatus="status">
        <tr align="center">
            <%--<td>${brand.id}</td>--%>
<%--            <td>${zhangwus.zwid}</td>--%>
            <td>${status.count}</td>
            <td>${zhangwus.flname}</td>
            <td>${zhangwus.money}</td>
            <td>${zhangwus.zhanghu}</td>
            <td>${zhangwus.createtime}</td>
            <td>${zhangwus.description}</td>

            <td><a href="#">修改</a> <a href="#">删除</a></td>
        </tr>

    </c:forEach>




</table>
<script>
    document.getElementById("add").onclick=function () {
        location.href="/countmanage/addZhangwu.jsp";
    }
</script>


</body>
</html>